﻿//
// $HeadURL: http://codeka-memcache.googlecode.com/svn/trunk/Codeka.Memcache/StoreObject.cs $
// $Revision: 10 $
// $Author: dean.codeka $     $Date: 2010-02-21 06:05:46 +0000 (Sun, 21 Feb 2010) $
//
// Copyright © 2009-2010 Dean Harding, all rights reserved.
//

using System;

namespace Codeka.Memcache
{
    /// <summary>
    /// Represents an object that we are going to store in an memcache node.
    /// </summary>
    public class StoreObject
    {
        /// <summary>
        /// The value to actually store.
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// The flags to store with the value
        /// </summary>
        public int Flags { get; set; }

        /// <summary>
        /// Gets or sets the <see cref="StoreMode"/> we want to use for <em>this value</em>.
        /// </summary>
        public StoreMode StoreMode { get; set; }

        /// <summary>
        /// The <see cref="TimeSpan"/> expiry of the object.
        /// </summary>
        public TimeSpan Expiry { get; set; }
    }
}
